//
//  CCTableViewCell.m
//  test02
//
//  Created by lzh on 2020/11/24.
//  Copyright © 2020 NO. All rights reserved.
//

#import "CCTableViewCell.h"

@implementation CCTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

-(id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        
        self.contentView.backgroundColor = [UIColor blueColor];
        UIView * bg = [[UIView alloc]initWithFrame:CGRectMake(0, 0, 100, 100)];
        bg.backgroundColor = [UIColor redColor];
        [self.contentView addSubview:bg];
    }
    
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

+ (CGFloat)heightForContent:(id)aContent
{
    
    return 120;
}

@end
